package com.estrelas.classes;

import java.io.FileReader;
import java.io.IOException;

import weka.core.Instances;

public class Leitor {
	public static Instances getDataSet(String file, int index) throws IOException{
		
		//leitor do arquivo arff
		
		FileReader reader = new FileReader(file);
		Instances dataset = new Instances(reader);
		dataset.setClassIndex(index);
		return dataset;
	}
}
